package com.itheima.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Controller;

@Configuration
//@ComponentScan("com.itheima.service")  //添加扫描
//排除扫描(排除重复扫描)
@ComponentScan(value = "com.itheima",excludeFilters = @ComponentScan.Filter(
        type = FilterType.ANNOTATION,
        value = {Controller.class}
))
public class SpringConfig {
}
